<?php

namespace App\Events;

use App\Model\Foundation\Student;

class StudentEvent extends Event
{

    # calssin 账号
    public $telephone;
    # 名字
    public $nickname;

    public $password;

    /**
     * StudentEvent constructor.
     * @param Student $student
     * @param $action
     */
    public function __construct(Student $student, $action, $password=null)
    {
        parent::__construct();
        $this->action = $action;
        $this->password = $password;
        $this->nickname = $student->name;
        $this->telephone = $student->ClassInNo;
    }

}
